﻿using Avalonia.Controls;
using LightCAD.Core;
using SkiaSharp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LightCAD.Runtime
{
    public class VPortInputer
    {
        public static bool IsAuxLineDrawing { get; set; }

        public static Action<Action<bool,Vector2d?>> StartInputPoint { get; set; }
        public static Action<bool> EndInputPoint { get; set; }

        public static Action<SKCanvas, object[]> AuxLineDraw { get; set; }

        public static void SetAuxLineDraw(Action<SKCanvas, object[]> drawAction)
        {
            AuxLineDraw= drawAction;
            IsAuxLineDrawing = (drawAction != null);
            
        }
    }
}
